package com.tqfframe.task.learning.extendStudy;

/**
 * @Author: 唐祺峰
 * @Date: 2020/8/28 0028 17:30
 * @Version 1.0
 */
public class TestMain {
    public static void main(String[] args) {
        ParentData parentData=new ParentData("page");
        ChildrenData1 childrenData1=new ChildrenData1();
        childrenData1.setParentData(parentData);
        childrenData1.setValueByType("我是子类1传入的值");
        System.out.println(childrenData1.getValueByType());
        System.out.println(childrenData1.getValue());
        ChildrenData2 childrenData2=new ChildrenData2();
        childrenData2.setParentData(parentData);
        System.out.println("我是子类2："+childrenData2.getValueByType());
        System.out.println(childrenData2.getValue());

    }
}
